<html>
    <head>
        <title>{$Think.Config.USER.USER_KEY}-后台管理系统</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link href="__CSS__cssreset-min.css" type="text/css" rel="stylesheet"/>
        <link href="__THEME__Css/frm-layout.min.css" rel="stylesheet" type="text/css"/>
    <link href="__JQPLUGIN__jquery-easyui-1.4.3/themes/default/easyui.min.css" rel="stylesheet" type="text/css"/>
</head>
<body>
    <script src="__JQPLUGIN__jquery-1.11.3.min.js" type="text/javascript"></script>
    <script src="__JQPLUGIN__jquery-easyui-1.4.3/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="__THEME__Plugin/CurdGrid-2.4.js" type="text/javascript"></script>
    <script src="__THEME__Script/frm-layout-2.2.js" type="text/javascript"></script>
    <div id="head">
        <!-- Logo -->
        <div class="col1 logo">
            <ul class="flag"> 
            <li class="blue"></li> 
            <li class="blue alt"></li> 
            <li class="yellow"></li> 
            <li class="yellow alt"></li> 
            <li class="black"></li> 
            <li class="green"></li> 
            <li class="green alt"></li> 
            <li class="red"></li> 
            <li class="red alt"></li> 
        </ul>  
            <h3>XCall 呼叫中心系统<small>这里可以写名言名句</small></h3>
        </div>
        <!-- /Logo -->
        <div class="col2">
            <!-- 公告内容 -->
            <div id="head-notice">
                <div class="notices-panel" style="display: none;">
                    <p>这里是滚动公告内容</p>
                    <p>这里是滚动公告内容</p>
                    <p>这里是滚动公告内容</p>
                </div>
            </div>
            <!-- /公告内容 -->                
        </div>
        <div class="col3">
            <div id="head-clock">12:30</div>
            <!-- 用户栏 -->
            <div id="user_bar" class="easyui-panel white-link" >
                <a href="#" class="easyui-linkbutton" data-options="plain:true">你好，{$loginData.userName}</a>
                <a href="{:U('Admin/user_profile')}" class="easyui-linkbutton lnk_grid_add" data-options="plain:true">设置</a>
                <if condition="$loginData['USER_KEY'] eq 'TTF'">
                    <a href="{:U('BehindOperate/go_crm')}" class="easyui-linkbutton" data-options="plain:true">客资管理</a>    
                </if>
                <a href="{:U('Login/logout')}" class="easyui-linkbutton" data-options="plain:true" onclick="return confirm('您确定刚要退出登录吗?');">注销</a>
                <if condition="'admin' eq $loginData['userName']">
                    <a href="#" class="easyui-menubutton" data-options="menu:'#mm_help'">帮助</a>
                </if>
            </div>
            <if condition="'admin' eq $loginData['userName']">
                <div id="mm_help">
                    <div data-options="name:'lnk_info'" data-href="{:U('Index/about')}">关于</div>
                    <if condition="$isSuperAdmin">
                        <div data-options="name:'lnk_info'" data-href="{:U('Licence/licence')}">授权信息</div>
                        <div data-options="name:'lnk_info'" data-href="{:U('Index/centserver')}">中心服务器</div>
                    </if>
                    <div data-options="href:'__ROOT__/Assets/XCall/help.doc'">使用帮助</div>
                    <div data-options="name:'lnk_info'" data-href="{:U('Index/client')}">客户端</div>
                </div>
            </if>
            <!-- /用户栏 -->    
            <div class="clearfix"></div>
        </div>
        <div class="clearfix"></div>
    </div>
    <!-- 主导航菜单 -->
    <div id="main_nav" class="easyui-panel white-link">
        <foreach name="menus" item="vo">
            <a href="{$vo.url}" class="easyui-menubutton" data-options="menu:'#main_menu_items_{$vo.id}',iconCls:'{$vo.code}'">{$vo.name}</a>
        </foreach>
    </div>
    <div id="main_nav_submms">
        <foreach name="menus" item="vo">
            <div id="main_menu_items_{$vo.id}" class="main-nav-sub">
                <foreach name="vo['children']" item="vo2">
                    <foreach name="vo2['children']" item="vo3">
                        <div id="{$vo3.id}" data-href="{:U($vo3['url'])}">{$vo3.name}</div>
                    </foreach>
                </foreach>
            </div>
        </foreach>
    </div>
    <!-- /主导航菜单 -->
    <div style="margin-top:5px;">
        <div id="tab_main" class="easyui-tabs" data-options="plain:true,narrow:true" style="width:100%;height:auto;">
            <div title="欢迎页" style="padding:10px">
                <div id="tab_welcome">欢迎使用{$Think.Config.USER.USER_KEY}!</div>
            </div>
        </div>
    </div>
    <!-- 全局变量 -->
    <span style="display:none" id="frm-config">"app_key":"MSDK","user_id":"1"</span>
    <!-- /全局变量 -->
    <script type="text/javascript">
        $('#tab_main').tabs({
            height: get_window_height(),
            onClose: function (title, index) {
                // 清理内存
                return;
                var tab = $('#tab_main').tabs('getSelected');
                var ifrm = $(tab).find('iframe');
                ifrm.attr('src', "about:blank");
            },
        });
        window.config = $.parseJSON('{' + $('#frm-config').text() + '}');
        var curd_grid = CurdGrid.newInstance();
        $(document).ready(function () {
            layout_init();
        })
    </script>
</body>
</html>